package com.xuwang.service;

import com.xuwang.Util.TableResult;
import com.xuwang.pojo.User;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

/**
 * (User)表服务接口类
 *
 * @author smallseven
 * @since 2021-08-31 15:29:51
 * @version 1.0
 */
public interface PublicInfoService {

    TableResult<String> register(User user);

    TableResult<HttpServletResponse> login(User user, HttpServletResponse response) throws Exception;

    TableResult<Integer> updateCode(String phoneNum, int code);

    TableResult<String> updateUserImg(String src, String token);

    TableResult<String> updateUserInfo(User user);

    TableResult<String> insertManyUser(String path, HttpServletRequest request) throws IOException, InvalidFormatException;


    User checkUserName(String userName);

    TableResult<String> deleteManyUser(Integer[] ids);
}
